﻿// JSON C# Class Generator


using System;
using Newtonsoft.Json.Linq;


namespace RedfinCrawlPro
{

    public class RedfinAddressData
    {

        public RedfinAddressData(JObject obj)
        {
           this.zip = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "zip"));
           this.unitType = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "unitType"));
           this.street = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "street"));
           this.state = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "state"));
           this.unmapped = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken<JValue>(obj, "unmapped"));
           this.number = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "number"));
           this.display = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "display"));
           this.undisclosed = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken<JValue>(obj, "undisclosed"));
           this.type = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "type"));
           this.suffix = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "suffix"));
           this.unitValue = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "unitValue"));
           this.city = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(obj, "city"));
        }

        public readonly string zip;
        public readonly string unitType;
        public readonly string street;
        public readonly string state;
        public readonly bool unmapped;
        public readonly string number;
        public readonly string display;
        public readonly bool undisclosed;
        public readonly string type;
        public readonly string suffix;
        public readonly string unitValue;
        public readonly string city;
    }
}
